/**
 * Created by karkarrotxu on 2016/11/8.
 */
qui(
    function (require, exports, module) {
        window.VODNew = window.VODNew || {
            version: '1.0',
            g_i: 0,
            g_mi: 0
        };
        VODNew.Constant = {
            baseApiUrl: "/api/",
            baseModeApiUrl_test: "http://10.23.70.33:7007/",
            baseModeApiUrl_produce: "http://dot.live.qiyi.domain/",
            //    thirdUrl_peditor_submit:"http://lego.iqiyi.com/peditor/submit",
            thirdUrl_simple_video: 'http://lego.iqiyi.com/suggest/simple-video',
            thirdUrl_channel: 'http://lego.iqiyi.com/suggest/operation', // 频道
            thirdUrl_album: 'http://lego.iqiyi.com/suggest/album',
            thirdUrl_peditor_submit: 'http://lego.iqiyi.com/peditor/submit', // 提交节目信息给lego
            //cpUrl : 'http://lego.iqiyi.com/live2VOD/cp/search', // 合作方接口
         //   thirdUrl_cpUrl: 'http://dispatch.live2vod.qiyi.domain/v1/partner/find',  //合作方接口 线上
            thirdUrl_cpUrl: 'http://dot.live.qiyi.domain/v1/partner/find',  //合作方接口 线上
            thirdUrl_test_cpUrl: 'http://10.23.70.33:7004/v1/partner/find',  //合作方接口 线上
            thirdUrl_locationUrl: 'http://lego.iqiyi.com/suggest/location-type',  //地区suggest接口

            //灰度上线地址
            devMode: auth.dev()
        }

        VODNew.urlConfig = (function () {
            var useUrl = VODNew.Constant.baseApiUrl;
            var redirectUrl = useUrl + "redirect";
            var modifyUrl = ( auth.dev() ? VODNew.Constant.baseModeApiUrl_test : VODNew.Constant.baseModeApiUrl_produce ) + "v1/ablum/modify";
            var partnerUrl = auth.dev() ? VODNew.Constant.thirdUrl_test_cpUrl : VODNew.Constant.thirdUrl_cpUrl;
            var submitLogUrl = useUrl + "vod/saveLog";
            var submitEpisodeLogUrl = useUrl + "vod/saveEpisodeLog";
            var submitOcr2DataUrl = useUrl + "statistic/ocr/new";
            var submitAutoTitleDataUrl = useUrl + "statistic/auto/new";
            return {
                modifyUrl: modifyUrl,
                redirect: redirectUrl,
                partnerUrl: partnerUrl,
                submitLogUrl: submitLogUrl,
                submitOcr2DataUrl: submitOcr2DataUrl,
                submitEpisodeLogUrl: submitEpisodeLogUrl,
                submitAutoTitleDataUrl:submitAutoTitleDataUrl
            }
        })()
    }
);